@import "../style/theme-color";

.d-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 11px 48px;
  font-size: 24px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  background: transparent;
  border: 1px solid transparent;
  transition: .3s ease-in;
  border-radius: 2px;

  &:active {
    transform: scale(.96);
  }

  &.cta {
    color: #fff;
    background: @orange;

    &:hover {
      background: #d56b00;
    }
  }

  &.primary {
    color: @orange;
    border-color: @orange;

    &:hover {
      border-color: #d56b00;
      color: #d56b00;
    }
  }

  .secondary {
    color: @gray;
    border-color: @gray;

    &:hover {
      border-color: #595959;
      color: #595959;
    }
  }

  &.secondary {
    .secondary();
  }

  &.inactive {
    .secondary();
    opacity: .5;
    cursor: not-allowed;
  }

  .icon {
    display: inline-block;
    margin-right: 10px;
    height: 24px;
    > * {
      display: inline-block;
      height: 100%;
    }
  }
}
